package com.ruoyi.InventoryInbound.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.InventoryInbound.mapper.InventoryInboundMapper;
import com.ruoyi.InventoryInbound.domain.InventoryInbound;
import com.ruoyi.InventoryInbound.service.IInventoryInboundService;

/**
 * 存货入库Service业务层处理
 * 
 * @author Mr.阚
 * @date 2025-03-12
 */
@Service
public class InventoryInboundServiceImpl implements IInventoryInboundService 
{
    @Autowired
    private InventoryInboundMapper inventoryInboundMapper;

    /**
     * 查询存货入库
     * 
     * @param id 存货入库主键
     * @return 存货入库
     */
    @Override
    public InventoryInbound selectInventoryInboundById(Long id)
    {
        return inventoryInboundMapper.selectInventoryInboundById(id);
    }

    /**
     * 查询存货入库列表
     * 
     * @param inventoryInbound 存货入库
     * @return 存货入库
     */
    @Override
    public List<InventoryInbound> selectInventoryInboundList(InventoryInbound inventoryInbound)
    {
        return inventoryInboundMapper.selectInventoryInboundList(inventoryInbound);
    }

    /**
     * 新增存货入库
     * 
     * @param inventoryInbound 存货入库
     * @return 结果
     */
    @Override
    public int insertInventoryInbound(InventoryInbound inventoryInbound)
    {
        return inventoryInboundMapper.insertInventoryInbound(inventoryInbound);
    }

    /**
     * 修改存货入库
     * 
     * @param inventoryInbound 存货入库
     * @return 结果
     */
    @Override
    public int updateInventoryInbound(InventoryInbound inventoryInbound)
    {
        return inventoryInboundMapper.updateInventoryInbound(inventoryInbound);
    }

    /**
     * 批量删除存货入库
     * 
     * @param ids 需要删除的存货入库主键
     * @return 结果
     */
    @Override
    public int deleteInventoryInboundByIds(Long[] ids)
    {
        return inventoryInboundMapper.deleteInventoryInboundByIds(ids);
    }

    /**
     * 删除存货入库信息
     * 
     * @param id 存货入库主键
     * @return 结果
     */
    @Override
    public int deleteInventoryInboundById(Long id)
    {
        return inventoryInboundMapper.deleteInventoryInboundById(id);
    }
}
